function curry(fn) {
  const _args = [].slice.call(arguments, 1);
  return function() {
    const args = [].slice.call(arguments);
    return fn.apply(null, args.concat(_args));
  };
}
